﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="Member.aspx.cs" Inherits="Admin_Member" %>

<asp:Content ID="Content1" ContentPlaceHolderID="titlePlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="menuPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPlaceHolder" runat="Server">
    <div id="pagein">
        <div id="pagein_content">
            <asp:MultiView ID="MultiView1" runat="server">
                <asp:View ID="View1" runat="server">
                    <table cellpadding="3" cellspacing="3" style="width: 100%;">
                        <tr>
                            <td style="width: 118px;" align="left">
                                <strong>Họ Tên: </strong>(<span style="color: red">*</span>)
                            </td>
                            <td align="left" colspan="2">
                                <input name="name" type="text" runat="server" id="txtName" />
                                <asp:RequiredFieldValidator runat="server" ID="ReName" ControlToValidate="txtName"
                                    Display="Dynamic" ErrorMessage="Không thể rỗng"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 118px" align="left">
                                <strong>Email </strong>(<span style="color: red">*</span>)
                            </td>
                            <td align="left" colspan="2">
                                <input name="name" type="text" runat="server" id="txtEmail" />&nbsp;
                                <asp:RequiredFieldValidator ID="ReEmail" runat="server" ControlToValidate="txtEmail"
                                    Display="Dynamic" ErrorMessage="Không thể rỗng"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="ReValiEmail" runat="server" ControlToValidate="txtEmail"
                                    ErrorMessage="Email không hợp lệ" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
                        </tr>
                        <tr>
                            <td style="width: 118px" align="left">
                                <strong>Mật khẩu </strong>(<span style="color: red">*</span>)
                            </td>
                            <td align="left" colspan="2">
                                <asp:TextBox ID="txtPass" runat="server" TextMode="Password" ></asp:TextBox>
                                <asp:RequiredFieldValidator runat="server" ID="RePass" ControlToValidate="txtPass"
                                    Display="Dynamic" ErrorMessage="Không thể rỗng."></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 118px" align="left">
                                <strong>Nhập lại mật khẩu </strong>(<span style="color: red">*</span>)
                            </td>
                            <td align="left" colspan="2">
                                <asp:TextBox ID="txtRePass" runat="server" TextMode="Password" ></asp:TextBox>
                                <asp:RequiredFieldValidator runat="server" ID="RerePass" ControlToValidate="txtRePass"
                                    Display="Dynamic" ErrorMessage="Không thể rỗng"></asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="ComPass" runat="server" ControlToCompare="txtPass" ErrorMessage="Nhập lại mật khẩu."
                                    ControlToValidate="txtRePass"></asp:CompareValidator></td>
                        </tr>
                        <tr>
                            <td style="width: 118px" align="left">
                                <strong>Tỉnh/Thành Phố: </strong>
                            </td>
                            <td align="left" colspan="2">
                                <asp:DropDownList ID="ddlProvince" runat="server" >
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 118px" align="left">
                                <strong>Họ tên bé: </strong>
                            </td>
                            <td align="left" colspan="2">
                                <input name="name" type="text" runat="server" id="txtNamebaby" /></td>
                        </tr>
                        <tr>
                            <td style="width: 118px" align="left">
                                <strong>Tuổi bé: </strong>
                            </td>
                            <td align="left" colspan="2">
                                 <asp:DropDownList Width="100px" ID="ddlyearBaby" runat="server" >
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td style="width: 118px" align="left">
                                <strong>Loại sửa từng dùng: </strong>
                            </td>
                            <td align="left" colspan="2">
                                <asp:DropDownList ID="ddlTypeMilk" runat="server" >
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td style="width: 118px">
                            </td>
                            <td style="width: 330px">
                                <div id="p-select" class="cssbutton">
                                    <asp:Button runat="server" ID="btnDangBai" CausesValidation="true" Text="Lưu" OnClick="LinkRegister_Click" />
                                    <asp:Button runat="server" ID="Button1" CausesValidation="false" Text="Hủy" OnClick="link_Cancel_Click" />
                                    <a class="bttop" href="javascript:window.history.back();"><strong>Quay lại</strong>
                                    </a>
                                </div>
                            </td>
                            <td style="width: 6px">
                            </td>
                        </tr>
                        <asp:Label ID="lblMessage" runat="server"></asp:Label>
                    </table>
                </asp:View>
                <asp:View ID="View2" runat="server">
                    <strong>
                       Thêm thành viên thành công
                        <asp:LinkButton ID="linkBack" runat="server" OnClick="linkBack_Click">Quay lại</asp:LinkButton>
                    </strong>
                </asp:View>
                <asp:View ID="View3" runat="server">
                    <strong>
                        Cập nhật thông tin thành công
                        <asp:LinkButton ID="linkBack1" runat="server" OnClick="linkBack_Click">Quay lại</asp:LinkButton>
                    </strong>
                </asp:View>
            </asp:MultiView>
        </div>
    </div>
</asp:Content>
